javascript get element by class

104

get element by class -

var elements = document.getElementsByClassName(names); // or:
var elements = rootElement.getElementsByClassName(names);

Comments

Submit
0 Comments